package com.wnxy.portal.rabbit.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitClearCartConfig {
    // 存放清空购物车功能的消息
    @Bean
    public Queue clearCartQueue() {
        return new Queue(RabbitConstant.CLEAR_CART_QUEUE);
    }
}
